]> dgit.raspbian.org Git - gnome-shell.git/commit
st/bin: Delegate child allocation to layout manager
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Dec 2023 14:45:17 +0000 (15:45 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 15 Dec 2023 14:45:38 +0000 (14:45 +0000)
commitc290a38730eb2a5a59314ce63ba0239cd182f9b0
tree18609e1d20174de54b06dddde19cee5a3a4a07ed
parentb02800f8b50cf61f8493920df8ca2c9c0a81172a
st/bin: Delegate child allocation to layout manager

Since commit ed3b8d093e16, the actor's single-child policy is
enforced even when using the generic add/remove_child() methods.

This makes it possible to follow GTK/AdwBin's lead and replace
out custom child allocation with a BinLayout, without changing
the actor's semantics in a fundamental way.

However this does change slightly how the child is allocated, as
it now only expands according to its expand properties, not when
the alignment is set to FILL.

Even after the preparations in the previous commit, some fallout
is still likely, but it will be easy to address, and the cleanup
is significant enough to justify it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3046>
src/st/st-bin.c